<% form_remote_for( object ) do |f| %>
<%= hidden_field_tag 'object_name', @object_name %>
<% ActiveRecord::Schema.columns( @object_name.pluralize ).each do |column| %>
<% unless ['id','created_at','updated_at'].include? column.name %>
	<p>
	    <%= f.label column.name.to_sym %><br />
		<%= render :partial => 'layouts/object_view/input/'+column.type.to_s, 
						:locals => { :field => column.name.to_sym, :form => f } %>
   	</p>
<% end %>
<% end %>
  <p>
    <%= submit_tag "Save" %>
  </p>
<% end %>
